package controller

import (
	"github.com/gin-gonic/gin"
	"app/api/sys/service"
	"net/http"
)

var mService service.MenuService = service.MenuService{}
//查询顶层目录模块
func QueryMenuModule(c *gin.Context) {
	//用户名
	userName := c.Param("userName")
	res, msg, data := mService.QueryModuleMenu(userName)
	c.JSON(http.StatusOK, gin.H{"res":res, "msg":msg, "data":data})
}
